<template>
<div>
    <div class="resource-manage">
        <div class="card-box">
            <div class="card-title">不动产信息</div>
            <el-form ref="propForm" :model="propForm" class="form-wrap" size="small">
                <el-form-item label="是否有不动产证">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.isCard,isCards)}}</el-col>
                </el-form-item>
                <el-form-item label="证件类型" >
                    <el-col class="in_txt">{{getCardTypeValue(propForm.cardType,cardTypes)}}</el-col>
                </el-form-item>
                <el-form-item :label="cardNum">
                    <el-col class="in_txt">{{propForm.cardNum}}</el-col>
                </el-form-item>
                <el-form-item label="(国标码)资产分类代码">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.assetClassification,assetClassificationTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="资产名称">
                    <el-col class="in_txt">{{propForm.assetName}}</el-col>
                </el-form-item>
                <el-form-item label="使用状况">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.useStatus,useStatusTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="取得方式">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.acquisitionMethod,acquisitionMethodTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="取得日期">
                    <el-col class="in_txt">{{propForm.acquisitionDate}}</el-col>
                </el-form-item>
                <el-form-item label="投入使用日期">
                    <el-col class="in_txt">{{propForm.investmentAcquisitionDate}}</el-col>
                </el-form-item>
                <el-form-item label="价值类型">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.valueType,valueTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="登记价/评估价">
                    <el-col class="in_txt">{{propForm.registrationPrice}}</el-col>
                </el-form-item>
                <el-form-item label="登记费">
                    <el-col class="in_txt">{{propForm.registrationFee}}</el-col>
                </el-form-item>
                <el-form-item label="税费">
                    <el-col class="in_txt">{{propForm.taxation}}</el-col>
                </el-form-item>
                <el-form-item label="价值">
                    <el-col class="in_txt">{{propForm.value}}</el-col>
                </el-form-item>
                <el-form-item label="数量">
                    <el-col class="in_txt">{{propForm.number}}</el-col>
                </el-form-item>
                <el-form-item label="计量单位(m²)">
                    <el-col class="in_txt">{{propForm.measurementUnit}}</el-col>
                </el-form-item>
                <el-form-item label="宗地号">
                    <el-col class="in_txt">{{propForm.landNumber}}</el-col>
                </el-form-item>
                <el-form-item label="宗地面积(m²)">
                    <el-col class="in_txt">{{propForm.landAreaCard}}</el-col>
                </el-form-item>
                <el-form-item label="建筑/土地面积(m²)">
                    <el-col class="in_txt">{{propForm.landArea}}</el-col>
                </el-form-item>
                <el-form-item label="权属证号">
                    <el-col class="in_txt">{{propForm.ownershipCertificateNo}}</el-col>
                </el-form-item>
                <el-form-item label="发证日期">
                    <el-col class="in_txt">{{propForm.issueData}}</el-col>
                </el-form-item>
                <el-form-item label="权属年限(月)">
                    <el-col class="in_txt">{{propForm.ownershipPeriod}}</el-col>
                </el-form-item>
                <el-form-item label="权属证明">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.ownershipCertificate,ownershipCertificateTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="坐落位置">
                    <el-col class="in_txt">{{propForm.location}}</el-col>
                </el-form-item>
                <el-form-item label="权属性质">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.ownershipNature,ownershipNatureTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="自用面积(m²)">
                    <el-col class="in_txt">{{propForm.selfUseArea}}</el-col>
                </el-form-item>
                <el-form-item label="自用价值(元)">
                    <el-col class="in_txt">{{propForm.selfUseValue}}</el-col>
                </el-form-item>
                <el-form-item label="建筑结构">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.buildingStructure,buildingStructureTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="折旧状态">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.depreStatus,depreStatusTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="累计折旧额(元)">
                    <el-col class="in_txt">{{propForm.accumDepre}}</el-col>
                </el-form-item>
                <el-form-item label="预计使用年限">
                    <el-col class="in_txt">{{propForm.estimatedLife}}</el-col>
                </el-form-item>
                <el-form-item label="初始折旧月份">
                    <el-col class="in_txt">{{propForm.initDepreMonth}}</el-col>
                </el-form-item>
                <el-form-item label="上次折旧月份">
                    <el-col class="in_txt">{{propForm.lastDepreMonth}}</el-col>
                </el-form-item>
                <el-form-item label="残值率">
                    <el-col class="in_txt">{{propForm.salvageValue}}</el-col>
                </el-form-item>
                <!--<el-form-item label="政府投资项目">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.assetRegistrationId,this.assetRegistrationTypes)}}</el-col>
                </el-form-item>-->
                <el-form-item label="是否政府投资项目">
                    <el-col class="in_txt" v-if="propForm.assetRegistrationId === '1'">否</el-col>
                    <el-col class="in_txt" v-else>是</el-col>
                </el-form-item>
                <el-form-item label="所属项目">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.projectId,this.projects)}}</el-col>
                </el-form-item>
                <el-form-item label="土地用途">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.landType,this.landUses)}}</el-col>
                </el-form-item>
                <el-form-item label="规划用途">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.planningType,this.planUses)}}</el-col>
                </el-form-item>
                <el-form-item label="登记日期">
                    <el-col class="in_txt">{{propForm.registrationDate}}</el-col>
                </el-form-item>
                <el-form-item label="竣工时间">
                    <el-col class="in_txt">{{propForm.completionTime}}</el-col>
                </el-form-item>
                <el-form-item label="权利人">
                    <el-col class="in_txt">{{propForm.obligee}}</el-col>
                </el-form-item>
                <el-form-item label="资产编码">
                    <el-col class="in_txt">{{propForm.assetCode}}</el-col>
                </el-form-item>
                <el-form-item label="产权形式">
                    <el-col class="in_txt">{{getCardTypeValue(propForm.propertyRightForm,this.proprietaryTypes)}}</el-col>
                </el-form-item>
                <el-form-item label="地址" class="full" >
                    <el-col class="in_txt">{{propForm.area}}{{propForm.address}}</el-col>
                </el-form-item>
                <el-form-item label="备注" prop="remarks" class="full">
                    <el-col class="in_txt">{{propForm.remarks}}</el-col>
                </el-form-item>
            </el-form>
        </div>
    </div>
    <div class="resource-manage">
        <relevancyProperty :pid='$route.params.id' :showButton="false"></relevancyProperty>
    </div>
    <div class="resource-manage">
        <governmentInvestment ref="governmentInvestment" :pid="$route.params.id" :showButton="false" v-show="governmentInvestmentFlag"></governmentInvestment>
    </div>
    <div class="resource-manage">
        <div class="card-box">
            <div class="card-title">附件信息</div>
            <div style="padding: 10px 20px">
                <div class="flex-c" v-for="(item, index) in fileList" :key="index">
                    <div class="name mr20">{{ item.original + '(' + item.fileSize / 1024 + 'M)'}}</div>
                    <div class="date mr20">{{ item.updateTime }}</div>
                    <div class="btn">
                        <el-button type="text" @click="handleDownload(item.fileId)">下载</el-button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="resource-manage">
         <div class="card-box">
            <el-form class="but_form" size="small">
                <el-form-item class="col-two">
                    <el-button type="primary" @click="closeTab">关闭</el-button>
                </el-form-item>
            </el-form>
        </div>
    </div>
 </div>
</template>
<script src='./property_look.js'>
</script>
<style scoped lang="scss">
@import "./property_look";
</style>
